package tmc.gui;

import java.awt.Color;
import java.awt.Dimension;

import org.apache.log4j.Logger;
import org.geotools.renderer.lite.StreamingRenderer;
import org.geotools.swing.JMapPane;

import tmc.logic.actionListeners.OpenFileActionListener;
import tmc.main.TMCConstants;

/**
 * Map view of the tmc app
 * 
 * @author Jacek
 * 
 */
public class MapView extends JMapPane {
	
	private static Logger LOGGER = Logger.getLogger(MapView.class);
	TMCFrame parent;
	
	public MapView(TMCFrame parentFrame) {
		super();

		parent = parentFrame;
		init();
	}

	private void init() {
		LOGGER.debug("initializing map view");
		setSize(new Dimension(TMCConstants.MAP_VIEW_HORIZONTAL_SIZE,TMCConstants.TMC_FRAME_VERTICAL_SIZE));
		setBackground(Color.WHITE);
		setRenderer(new StreamingRenderer());
	}
}
